import request from '@/utils/request'

// 查询广告信息列表
export function listAdvertisementinfo(query) {
  return request({
    url: '/system/advertisementinfo/list',
    method: 'get',
    params: query
  })
}

// 查询广告信息详细
export function getAdvertisementinfo(advertisementId) {
  return request({
    url: '/system/advertisementinfo/' + advertisementId,
    method: 'get'
  })
}

// 新增广告信息
export function addAdvertisementinfo(data) {
  return request({
    url: '/system/advertisementinfo',
    method: 'post',
    data: data
  })
}

// 修改广告信息
export function updateAdvertisementinfo(data) {
  return request({
    url: '/system/advertisementinfo',
    method: 'put',
    data: data
  })
}

// 删除广告信息
export function delAdvertisementinfo(advertisementId) {
  return request({
    url: '/system/advertisementinfo/' + advertisementId,
    method: 'delete'
  })
}

// 导出广告信息
export function exportAdvertisementinfo(query) {
  return request({
    url: '/system/advertisementinfo/export',
    method: 'get',
    params: query
  })
}